/**
 * 
 */
package tp1.model;

/**
 * @author david
 *
 */
public class Posicion {
	private int x;
	private int y;
	
	public Posicion(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}
	
	public double getDistacia(Posicion posicion) {
		return Math.hypot(Math.abs(this.getX() - posicion.getX()), Math.abs(this.getY() - posicion.getY()));
	}
	
}
